package com.example.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class TestController {
    @RequestMapping("/test")
    public String test(){
        return "success";
    }

    @RequestMapping("/test1")
    public String test1(String name,Integer age){
        return "name: "+name +", age: "+age;
    }

    @RequestMapping("/s1")
    public Color tes1t(){
        return Color.BLACK;
    }
}
